import request from '@/utils/request'

// 查询班次列表
export function listClasses(query) {
  return request({
    url: '/group/classes/list',
    method: 'get',
    params: query
  })
}

// 查询班次列表(分页)
export function pageClasses(query) {
  return request({
    url: '/group/classes/page',
    method: 'get',
    params: query
  })
}

// 查询班次详细
export function getClasses(classesId) {
  return request({
    url: '/group/classes/get/' + classesId,
    method: 'get'
  })
}

// 新增班次
export function addClasses(data) {
  return request({
    url: '/group/classes/add',
    method: 'post',
    data: data
  })
}

// 修改班次
export function updateClasses(data) {
  return request({
    url: '/group/classes/edit',
    method: 'post',
    data: data
  })
}

// 删除班次
export function delClasses(classesId) {
  return request({
    url: '/group/classes/remove/' + classesId,
    method: 'post'
  })
}
